<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
var foo = {}
F = function(){}
Object.prototype.a = 'value a'
Function.prototype.b = 'value b'
console.log(foo.a)                              //value a
console.log(foo.b)                              //undefined

console.log(F.a)        //value a
console.log(F.b)        //value b
    </script>
</body>
</html>